package com.cgwx.tmservice.client;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cgwx.commonutils.result.SysResult;
import com.cgwx.springsecurity.entity.SysLoginLog;
import com.cgwx.springsecurity.entity.SysLoginLogQueryVo;
import com.cgwx.springsecurity.entity.SysOperLog;
import com.cgwx.springsecurity.entity.SysOperLogQueryVo;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Component;

/**
 * @author GaoWei
 * @Date 2023/10/28 - 15:27
 */

@Component
public class SystemHystrixFeignClient implements SystemClient{
    @Override
    public SysResult saveSysLog(SysOperLog operLog) {
        return SysResult.fail().message("调用错误");
    }

    @Override
    public IPage<SysOperLog> selectOperPage(Long page, Long limit, SysOperLogQueryVo sysOperLogQueryVo) {
        return null;
    }

    @Override
    public UserDetails loadUserByUsername(String username) {
        return null;
    }

    @Override
    public SysResult recordLoginLog(String username, Integer status, String ipaddr, String message) {
        return SysResult.fail().message("调用错误");
    }

    @Override
    public IPage<SysLoginLog> selectLoginPage(Long page, Long limit, SysLoginLogQueryVo sysLoginLogQueryVo) {
        return null;
    }
}
